﻿@model FollowUpNetwork.Models.NotebookLeaderboard

@{
    ViewBag.Title = "数据修改";
}

<h2>笔记本修改界面</h2>


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.NotebookLeaderboardId)

        <div class="form-group">
            <p class="control-label col-md-2">排名</p>
            <div class="col-md-10">
                @Html.EditorFor(model => model.NotebookRanking, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.NotebookRanking, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            <p class="control-label col-md-2">型号</p>
            <div class="col-md-10">
                @Html.EditorFor(model => model.NotebookModel, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.NotebookModel, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            <p class="control-label col-md-2">价格</p>
            <div class="col-md-10">
                @Html.EditorFor(model => model.NotebookPrice, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.NotebookPrice, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="保存" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("返回排行榜管理界面", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

